/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package email;

/**
 *
 * @author jcrbsa
 */
import javax.mail.PasswordAuthentication;
import javax.mail.Authenticator;





public class Autenticar extends Authenticator{

	
	
	private String usuario;
	private String senha;
	
	
	public Autenticar(String usuario, String senha) {
		super();
		this.usuario = usuario;
		this.senha = senha;
	}


	
	public PasswordAuthentication getPassorwdAuthentication(){
		
		return new PasswordAuthentication(usuario, senha);
		
	}
	

}
